s=input().split()
d=["zero","one","two","three","four","five", "six","seven","eight","nine"]
if len(s)==3 and s[0] in d and s[0]!="zero" and s[1] in d and s[2] in d :
    a=d.index(s[0])
    b=d.index(s[1])
    c=d.index(s[2])
    x=100*a+10*b+c
else:
    print("Wrong input")